package com.orange.eduservice.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author orange
 * @email orangestart@yeah.net
 * @create 2021-12-29 14:40
 */
@Component
@FeignClient("service-order")
public interface OrderClient {
    //根据【用户id、课程id】查询订单表中的状态，判断该课程是否已经购买
    @GetMapping("/orderService/order/isBuyCourse/{memberId}/{courseId}")
    Boolean isBuyCourse(@PathVariable("memberId") String memberId, @PathVariable("courseId") String courseId);
}
